/*
 * @Author: white_queen
 * @Date: 2024-07-17 16:36:14
 * @LastEditors: white_queen
 * @LastEditTime: 2024-07-17 16:36:51
 * @FilePath: /http/apis/shopping.js
 * @Description: 购物车模块接口
 */
import request from '../../utils/request.js'
const ShoppingApi = {
	// 获取购物列表
	getCartList(params) {
		let data = {
			data: params,
		};
		return request("/api/Cart/my_cart", "POST", data)
	},
	// 删除购物车
	delCartItem(params) {
		let data = {
			data: params,
		};
		return request("/api/Cart/del_cart", "POST", data)
	},
	// 修改购物车商品购买数量
	changeBuyNum(params) {
		let data = {
			data: params,
		};
		return request("/api/Cart/change_cart_num", "POST", data)
	},
}
export default ShoppingApi